package de.ctnetzapplet.view;

import de.afriese.swing.SwingTools;

import javax.swing.JFrame;

public class Main {
	public static void main(String[] args) {
		JFrame f = new JFrame("Netzschalter");
		f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		MainApplet panel = new MainApplet();
		f.add(panel);
		panel.init();
		f.setLocation(100, 50);
		f.setSize(512, 520);
		f.setResizable(false);
		f.setVisible(true);
		try {
			f.setIconImage(SwingTools.loadImage("/images/icon.png"));
		} catch (Exception e) {
            panel.appendMessage("Error loading iconimage: " + e.getLocalizedMessage());
		}
	}

}
